﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// “用户控件”项模板在 http://go.microsoft.com/fwlink/?LinkId=234236 上提供

namespace otis.controls
{
    public sealed partial class AppBarButtom : UserControl
    {

        public delegate void OnClickEventHandler(object sender, RoutedEventArgs e);
        public event OnClickEventHandler OnClickEvent;

        public AppBarButtom()
        {
            this.InitializeComponent();
        }

        private void AppBarButton_Click(object sender, RoutedEventArgs e)
        {
            var btn = sender as AppBarButton;
            if (btn == null)
            {
                return;
            }

            if (OnClickEvent != null)
                OnClickEvent(sender, e);

        }

    }
}
